#!/bin/bash

source ./build_libs.sh

export DEV_HOME=`pwd`
export BUILD_DIR=$DEV_HOME"/build"

SOURCE_DIR=$DEV_HOME"/runtime_core/static_core"
TOOLCHAIN=$( get_toolchain )
OPTIONS=
BUILD_TYPE=$( get_fastverify )

#OPTIONS="-DETS_FUNC_TESTS_GROUPS=15"

OPTIONS="-DPANDA_WITH_COMPILER=true"
TARGETS="panda_bins ark_disasm es2panda arkquick verifier ark_aot ets-compile-stdlib-default"

run_cmake_ninja $SOURCE_DIR $BUILD_DIR "$BUILD_TYPE" "$TOOLCHAIN" "$OPTIONS" 15 "${TARGETS}"
